package net.zjitc.ChouXiang;

/**
 * @Author admin
 * @Date 2019/3/20 10:50
 */
public class ShapeFactory {
    public static Shape getShape(int a){
        if (a==1){
            return new Circle(2);
        }else if (a==2){
            return new Triangle(4,6);
        }else {
            return null;
        }
    }
}
